<?php
/**
 * Created by PhpStorm.
 * User: lantranduc
 * Date: 5/22/14
 * Time: 2:33 PM
 */

?>
<div class="main-content">
    <h1 style="font-size:30px;text-align:center;">Login</h1> <br/>
    <form action="<?php echo $this->Html->url(array('controller'=>'Users','action'=>'login/'.$redirect),true) ?>" method="post" >
        <table style="margin:50px 50px;width:400px;background-color:#edf1ff;">
            <tr>
                <td>
                    <pre>              </pre>
                </td>
                <td>
                    <pre>              </pre>
                </td>
            </tr>
            <tr>
                <td style="width:100px">Email</td>
                <td><input type="email"  <?php echo isset($err)?$err:''; ?> name="email" required="true" /></td>
            </tr>
            <tr>
                <td>
                    <pre>              </pre>
                </td>
                <td>
                    <pre>              </pre>
                </td>
            </tr>
            <tr>
                <td style="width:100px">Password</td>
                <td><input type="password"  <?php echo isset($err)?$err:'';unset($err); ?> name="password" required="true" /></td>
            </tr>
            <tr>
                <td>
                    <pre>              </pre>
                </td>
                <td>
                    <pre>              </pre>
                </td>
            </tr>
            <tr>
                <td>

                </td>
                <td>
                    <input style="width: 60px;height:30px;border-radius:5px;border-color:red;" type="submit" value="Login" name="login"/>
                    <input style="width: 60px;height:30px;border-radius:5px;border-color:red;" value="reset" name="reset" type="reset"/>
                </td>
            </tr>
            <tr>
                <td>
                    <pre>              </pre>
                </td>
                <td>
                    <pre>              </pre>
                </td>
            </tr>
            <?php
                if(isset($msg)){?>
                    <tr>
                        <td></td>
                        <td><span style="color:red;"><?php echo $msg;unset($msg); ?></span></td>
                    </tr>
               <?php }
            ?>

        </table>
    </form>
</div>